﻿using GFE.Interfaces.Sample.Services;
using GFE.SharePoint.BaseClasses;
using GFE.SharePoint.HelperClasses;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GFE.Interfaces.Sample.Decorators
{
    public class CustomerServiceDecorator : GFEBaseDecorator<ICustomerService>, ICustomerService
    {
        public IEnumerable<Models.CustomerModel> GetCustomerList()
        {
            var CacheKey = "CustomerList";
            return GFECache.Cache(CacheKey, new TimeSpan(0, 5, 0), result => Service.GetCustomerList());
        }
    }
}
